import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueCookies from 'vue-cookies'
Vue.use(VueCookies)

// var axios = require('axios')
axios.defaults.baseURL = "http://localhost:8088"
axios.interceptors.request.use(request => {
	request.headers.Authorization =window.sessionStorage.getItem('sessionId')
	// request.headers.add("Access-Control-Allow-Origin","*")
	return request
})
Vue.prototype.$axios = axios
Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
	router,
	render: h => h(App)
}).$mount('#app')
